//
//  PYFillTextCell.h
//  IHome
//
//   Created by zhujizheng on 2020/2/18.
//  Copyright © 2019年 com.zhujizheng. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class PYFillTextCell;
@protocol PYFillTextCellDelegate <NSObject>

@optional
- (void)click:(PYFillTextCell *)cell indexPath:(NSIndexPath *)indexPath;
- (void)cell:(PYFillTextCell *)cell textDidChange:(NSString *)changedText indexPath:(NSIndexPath *)indexPath;
- (void)cell:(PYFillTextCell *)cell textDidEnd:(NSString *)text indexPath:(NSIndexPath *)indexPath;
@end

@interface PYFillTextCell : UITableViewCell
@property (nonatomic, strong, readonly) UILabel *lbl;
@property (nonatomic, strong, readonly) UITextField *textField;
@property (nonatomic, strong, readonly) UIButton *btn;
@property (nonatomic, strong, readonly) UIView *bottomLine;

+ (instancetype)cellWithTableView:(UITableView *)tableView indexPath:(nullable NSIndexPath *)indexPath delegate:(nullable id<PYFillTextCellDelegate>)delegate;

@end

NS_ASSUME_NONNULL_END
